﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Diablo3.Engine.Property
{
    /// <summary>
    /// 击杀回复
    /// </summary>
    public class LifePerKill : ItemsProperty,IAffecteLifePerKill
    {
        public LifePerKill() { }

        public LifePerKill(Double value)
        {
            Value = value;
        }

        /// <summary>
        /// 击杀生命恢复值
        /// </summary>
        public Double Value { get; set; }

        public override string Des
        {
            get { return String.Format("击杀恢复 {0}", Value); }
        }

        #region IAffecteLifePerKill 成员

        double IAffecteLifePerKill.Affecte(double source)
        {
            return source + Value;
        }

        #endregion
    }
}
